return icon_view->priv->orientation;
}
-void gtk_icon_view_set_columns (GtkIconView *icon_view,
- gint columns)
+/**
+ * gtk_icon_view_set_columns:
+ * @icon_view: a #GtkIconView
+ * @columns: the number of columns
+ *
+ * Sets the ::columns property which determines in how
+ * many columns the icons are arranged. If @columns is
+ * -1, the number of columns will be chosen automatically
+ * to fill the available area.
+ *
+ * Since: 2.6
+ */
+void
+gtk_icon_view_set_columns (GtkIconView *icon_view,
+ gint columns)
{
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
}
}
+/**
+ * gtk_icon_view_get_columns:
+ * @icon_view: a #GtkIconView
+ *
+ * Returns the value of the ::columns property.
+ *
+ * Return value: the number of columns, or -1
+ *
+ * Since: 2.6
+ */
gint
gtk_icon_view_get_columns (GtkIconView *icon_view)
{
return icon_view->priv->columns;
}
-void gtk_icon_view_set_item_width (GtkIconView *icon_view,
- gint item_width)
+/**
+ * gtk_icon_view_set_item_width:
+ * @icon_view: a #GtkIconView
+ * @item_width: the width for each item
+ *
+ * Sets the ::item-width property which specifies the width
+ * to use for each item. If it is set to -1, the icon view will
+ * automatically determine a suitable item size.
+ *
+ * Since: 2.6
+ */
+void
+gtk_icon_view_set_item_width (GtkIconView *icon_view,
+ gint item_width)
{
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
}
}
+/**
+ * gtk_icon_view_get_item_width:
+ * @icon_view: a #GtkIconView
+ *
+ * Returns the value of the ::item-width property.
+ *
+ * Return value: the width of a single item, or -1
+ *
+ * Since: 2.6
+ */
gint
gtk_icon_view_get_item_width (GtkIconView *icon_view)
{
}
-void gtk_icon_view_set_spacing (GtkIconView *icon_view,
- gint spacing)
+/**
+ * gtk_icon_view_set_item_width:
+ * @icon_view: a #GtkIconView
+ * @spacing: the spacing
+ *
+ * Sets the ::spacing property which specifies the space
+ * which is inserted between the cells (i.e. the icon and
+ * the text) of an item.
+ *
+ * Since: 2.6
+ */
+void
+gtk_icon_view_set_spacing (GtkIconView *icon_view,
+ gint spacing)
{
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
}
}
+/**
+ * gtk_icon_view_get_spacing:
+ * @icon_view: a #GtkIconView
+ *
+ * Returns the value of the ::spacing property.
+ *
+ * Return value: the space between cells
+ *
+ * Since: 2.6
+ */
gint
gtk_icon_view_get_spacing (GtkIconView *icon_view)
{
return icon_view->priv->spacing;
}
-void gtk_icon_view_set_row_spacing (GtkIconView *icon_view,
- gint row_spacing)
+/**
+ * gtk_icon_view_set_row_spacing:
+ * @icon_view: a #GtkIconView
+ * @spacing: the row spacing
+ *
+ * Sets the ::row-spacing property which specifies the space
+ * which is inserted between the rows of the icon view.
+ *
+ * Since: 2.6
+ */
+void
+gtk_icon_view_set_row_spacing (GtkIconView *icon_view,
+ gint row_spacing)
{
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
}
}
+/**
+ * gtk_icon_view_get_row_spacing:
+ * @icon_view: a #GtkIconView
+ *
+ * Returns the value of the ::row-spacing property.
+ *
+ * Return value: the space between rows
+ *
+ * Since: 2.6
+ */
gint
gtk_icon_view_get_row_spacing (GtkIconView *icon_view)
{
return icon_view->priv->row_spacing;
}
-void gtk_icon_view_set_column_spacing (GtkIconView *icon_view,
- gint column_spacing)
+/**
+ * gtk_icon_view_set_column_spacing:
+ * @icon_view: a #GtkIconView
+ * @spacing: the column spacing
+ *
+ * Sets the ::column-spacing property which specifies the space
+ * which is inserted between the columns of the icon view.
+ *
+ * Since: 2.6
+ */
+void
+gtk_icon_view_set_column_spacing (GtkIconView *icon_view,
+ gint column_spacing)
{
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
}
}
+/**
+ * gtk_icon_view_get_column_spacing:
+ * @icon_view: a #GtkIconView
+ *
+ * Returns the value of the ::column-spacing property.
+ *
+ * Return value: the space between columns
+ *
+ * Since: 2.6
+ */
gint
gtk_icon_view_get_column_spacing (GtkIconView *icon_view)
{
return icon_view->priv->column_spacing;
}
-void gtk_icon_view_set_margin (GtkIconView *icon_view,
- gint margin)
+/**
+ * gtk_icon_view_set_marging:
+ * @icon_view: a #GtkIconView
+ * @spacing: the margin
+ *
+ * Sets the ::margin property which specifies the space
+ * which is inserted at the top, bottom, left and right
+ * of the icon view.
+ *
+ * Since: 2.6
+ */
+void
+gtk_icon_view_set_margin (GtkIconView *icon_view,
+ gint margin)
{
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
}
}
+/**
+ * gtk_icon_view_get_margin:
+ * @icon_view: a #GtkIconView
+ *
+ * Returns the value of the ::margin property.
+ *
+ * Return value: the space at the borders
+ *
+ * Since: 2.6
+ */
gint
gtk_icon_view_get_margin (GtkIconView *icon_view)
{